<template>
    <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="班级名称">
            <el-input v-model="form.clazzName"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSubmit">立即创建</el-button>
            <el-button>取消</el-button>
        </el-form-item>
        </el-form>
</template>

<script>
import ucenter from '@/api/ucenter/ucenter'
export default {

  data() {
    // 定义变量和初始值
    return {
        form:{
            
        }
    }
  },
  created() {

  },
  methods: {
   onSubmit(){
       ucenter.addClazz(this.form).then((res)=>{
           console.log('添加成功')
       })
   }
  },


}
</script>

<style>

</style>